feat(cli): add bounded telemetry retention - #294
Draft
robbiemu wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the missing bounded lifecycle for local telemetry archives:
maple archive retire-live <range-date> --applyremoves one verified UTC day from the six live raw tables.maple archive expire <range-date> --applyremoves one complete archived UTC day across all six signals.maple start --raw-telemetry-retention-days <days>provides an explicit opt-in TTL backstop for operators whose coordinated active-data window exceeds Maple's normal schema TTLs. Omitting the flag preserves current defaults.Why
The archive work merged in #194 provides checkpointing, validated archive generation, reconciliation, verification, and garbage collection, but no coordinated operation for retiring verified live partitions or expiring complete archive days. Operators therefore cannot bound both the active store and archive volume using Maple's durable archive protocol.
An earlier local implementation also changed every user's raw-table TTL to 120 days during startup. This version removes that global behavior and makes the TTL override explicit and optional.
Safety and recovery
--apply.Validation
bun run --filter @maple/cli typecheckserver-network.test.ts).mainat6578edf1.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.